<template>
  <div>
    <van-field label="标题" v-model="form.title"></van-field>
    <van-button @click="fabu">发布</van-button>
  </div>
</template>

<script>
import axios from 'axios'
export default {
  name: "audit_news",
  data(){
    return{
      form:{'id':localStorage.getItem('id')}
    }
  },
  methods:{
    fabu(){
      axios.post('http://127.0.0.1:5000/post_news',this.form)
          .then(res=>{
            console.log(res)
            alert('发布成功')
          })
    }
  },
  mounted() {
  }
}
</script>

<style scoped>

</style>
